// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.ast.SQLObjectImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

// import java.util.ArrayList;
// import java.util.List;

#include "SQLAlterTableChangeOwner.h"
#include "../../visitor/SQLASTVisitor.h"
#include "../SQLName.h"

SQLAlterTableChangeOwner::SQLAlterTableChangeOwner()
{
  partition = std::make_shared<std::list<SQLAssignItem_ptr>>();
}
SQLAssignItem_list_ptr SQLAlterTableChangeOwner::getPartition()
{
  return partition;
}

// @Override
void SQLAlterTableChangeOwner::accept0(SQLASTVisitor_ptr visitor)
{
  visitor->visit(SharedObject(SQLAlterTableChangeOwner));
  visitor->endVisit(SharedObject(SQLAlterTableChangeOwner));
}

SQLName_ptr SQLAlterTableChangeOwner::getOwner()
{
  return owner;
}

void SQLAlterTableChangeOwner::setOwner(SQLName_ptr x)
{
  if (x != nullptr)
  {
    x->setParent(SharedObject(SQLAlterTableChangeOwner));
  }
  this->owner = x;
}
